Optimal. Leaf size=137 \[ -\frac{i a^5 \sqrt{a+i a \tan (c+d x)}}{2 d (a-i a \tan (c+d x))^2}+\frac{i a^4 \sqrt{a+i a \tan (c+d x)}}{8 d (a-i a \tan (c+d x))}+\frac{i a^{7/2} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{8 \sqrt{2} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0937976, antiderivative size = 137, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192, Rules used = {3487, 47, 51, 63, 206} \[ -\frac{i a^5 \sqrt{a+i a \tan (c+d x)}}{2 d (a-i a \tan (c+d x))^2}+\frac{i a^4 \sqrt{a+i a \tan (c+d x)}}{8 d (a-i a \tan (c+d x))}+\frac{i a^{7/2} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{8 \sqrt{2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3487
Rule 47
Rule 51
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \cos ^4(c+d x) (a+i a \tan (c+d x))^{7/2} \, dx &=-\frac{\left (i a^5\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a+x}}{(a-x)^3} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac{i a^5 \sqrt{a+i a \tan (c+d x)}}{2 d (a-i a \tan (c+d x))^2}+\frac{\left (i a^5\right ) \operatorname{Subst}\left (\int \frac{1}{(a-x)^2 \sqrt{a+x}} \, dx,x,i a \tan (c+d x)\right )}{4 d}\\ &=-\frac{i a^5 \sqrt{a+i a \tan (c+d x)}}{2 d (a-i a \tan (c+d x))^2}+\frac{i a^4 \sqrt{a+i a \tan (c+d x)}}{8 d (a-i a \tan (c+d x))}+\frac{\left (i a^4\right ) \operatorname{Subst}\left (\int \frac{1}{(a-x) \sqrt{a+x}} \, dx,x,i a \tan (c+d x)\right )}{16 d}\\ &=-\frac{i a^5 \sqrt{a+i a \tan (c+d x)}}{2 d (a-i a \tan (c+d x))^2}+\frac{i a^4 \sqrt{a+i a \tan (c+d x)}}{8 d (a-i a \tan (c+d x))}+\frac{\left (i a^4\right ) \operatorname{Subst}\left (\int \frac{1}{2 a-x^2} \, dx,x,\sqrt{a+i a \tan (c+d x)}\right )}{8 d}\\ &=\frac{i a^{7/2} \tanh ^{-1}\left (\frac{\sqrt{a+i a \tan (c+d x)}}{\sqrt{2} \sqrt{a}}\right )}{8 \sqrt{2} d}-\frac{i a^5 \sqrt{a+i a \tan (c+d x)}}{2 d (a-i a \tan (c+d x))^2}+\frac{i a^4 \sqrt{a+i a \tan (c+d x)}}{8 d (a-i a \tan (c+d x))}\\ \end{align*}
Mathematica [A] time = 1.34732, size = 152, normalized size = 1.11 \[ -\frac{i e^{-4 i (c+d x)} \sqrt{\frac{e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (e^{i (c+d x)}+3 e^{3 i (c+d x)}+2 e^{5 i (c+d x)}-\sqrt{1+e^{2 i (c+d x)}} \sinh ^{-1}\left (e^{i (c+d x)}\right )\right ) (a+i a \tan (c+d x))^{7/2}}{8 \sqrt{2} d \sec ^{\frac{7}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.344, size = 742, normalized size = 5.4 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.27462, size = 737, normalized size = 5.38 \begin{align*} \frac{\sqrt{2}{\left (-2 i \, a^{3} e^{\left (4 i \, d x + 4 i \, c\right )} - 3 i \, a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} - i \, a^{3}\right )} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (i \, d x + i \, c\right )} - \sqrt{\frac{1}{2}} \sqrt{-\frac{a^{7}}{d^{2}}} d \log \left (\frac{{\left (2 i \, \sqrt{\frac{1}{2}} \sqrt{-\frac{a^{7}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} + \sqrt{2}{\left (a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3}\right )} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{a^{3}}\right ) + \sqrt{\frac{1}{2}} \sqrt{-\frac{a^{7}}{d^{2}}} d \log \left (\frac{{\left (-2 i \, \sqrt{\frac{1}{2}} \sqrt{-\frac{a^{7}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} + \sqrt{2}{\left (a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{3}\right )} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{a^{3}}\right )}{16 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]